﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace T.FAS.Runtime.SPI
{
    /// <summary>
    /// 导入任务
    /// </summary>
    [DataContract]
    [Serializable]
    public  class ImportTask
    {
        /// <summary>
        /// ID
        /// </summary>
        [DataMember]
        public string ID { get; set; }
		/// <summary>
        /// CDO
        /// </summary>
        public string CDOID { get; set; }
        /// <summary>
        /// State 0进行中 1成功 2部分成功 3失败
        /// </summary>
        [DataMember]
        public int State { get; set; }
        /// <summary>
        /// 错误信息
        /// </summary>
        [DataMember]
        public string ErrMsg { get; set; }
        /// <summary>
        /// 文件路径
        /// </summary>
        [DataMember]
        public string FilePath { get; set; }
        /// <summary>
        /// 文件名称
        /// </summary>
        [DataMember]
        public string FileName { get; set; }
        /// <summary>
        /// 文件路径
        /// </summary>
        [DataMember]
        public string FileURL { get; set; }
        /// <summary>
        /// Sheet名称
        /// </summary>
        public string SheetName { get; set; }
        /// <summary>
        /// 错误文件路径
        /// </summary>
        public string FailFileURL { get; set; }
        /// <summary>
        /// 文件MD5
        /// </summary>
        public string FileMD5 { get; set; }
        /// <summary>
        /// 文件大小
        /// </summary>
        [DataMember]
        public string FileSize { get; set; }
        /// <summary>
        /// 文件后缀
        /// </summary>
        public string FileExts { get; set; }
        /// <summary>
        /// 脚本
        /// </summary>
        [DataMember]
        public string Script { get; set; }
        /// <summary>
        /// 成功行数
        /// </summary>
        [DataMember]
        public int SuccessCount { get; set; }
        /// <summary>
        /// 失败行数
        /// </summary>
        [DataMember]
        public int FailedCount { get; set; }
        /// <summary>
        /// 运行时间 秒
        /// </summary>
        [DataMember]
        public double ElapsedSeconds { get; set; }
        /// <summary>
        /// 导出时间
        /// </summary>
        [DataMember]
        public string ImportTime { get; set; }
        /// <summary>
        /// 用户ID
        /// </summary>
        public string UserID { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string Creator { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 最后修改人
        /// </summary>
        public string LastModifier { get; set; }
        /// <summary>
        /// 最后修改时间
        /// </summary>
        public DateTime LastModifyTime { get; set; }
    }
}
